import request from '@/utils/request'

// 获取一体杆列表
export const getPoleListAPI = params => {
  return request.get('/pole/info/list', { params })
}

// 获取关联地区下拉列表 /parking/area/dropList
export const getParkingListAPI = () => {
  return request.get('/parking/area/dropList')
}

// 添加一体杆
export const addPoleAPI = data => {
  return request.post('/pole/info', data)
}

// 编辑一体杆
export const editPoleAPI = data => {
  return request.put('/pole/info', data)
}

// 删除一体杆
export const delPoleAPI = id => {
  return request.delete(`/pole/info/${id}`)
}
